package org.kl.wx.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;
import org.kl.bf.entity.Excel;

@Entity
@Table(name = "WX_MESSAGE_SEND")
public class MessageSend extends AuditableEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4916514852191216441L;
	@Excel(exportName = "所属公共账号", exportProperty = "appName")
	private App app;
	@Excel(exportName = "发送类型")
	private String SendType;
	@Excel(exportName = "是否全员发送")
	private String IsToAll;
	@Excel(exportName = "分组Id")
	private String GroupIds;
	@Excel(exportName = "用户Id")
	private String Tousers;
	@Excel(exportName = "消息类行")
	private String mediaType;
	@Excel(exportName = "素材Id")
	private String MediaId;
	@Excel(exportName = "错误代码")
	private String errcode;
	@Excel(exportName = "错误信息")
	private String errmsg;
	@Excel(exportName = "信息Id")
	private String msgId;
	@Excel(exportName = "信息状态")
	private String msgStatus;

	public MessageSend() {
	}

	public MessageSend(String id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "app_id")
	public App getApp() {
		return app;
	}

	public void setApp(App app) {
		this.app = app;
	}

	public String getSendType() {
		return SendType;
	}

	public void setSendType(String sendType) {
		SendType = sendType;
	}

	public String getIsToAll() {
		return IsToAll;
	}

	public void setIsToAll(String isToAll) {
		IsToAll = isToAll;
	}

	public String getGroupIds() {
		return GroupIds;
	}

	public void setGroupIds(String groupIds) {
		GroupIds = groupIds;
	}

	public String getTousers() {
		return Tousers;
	}

	public void setTousers(String tousers) {
		Tousers = tousers;
	}

	public String getMediaType() {
		return mediaType;
	}

	public void setMediaType(String mediaType) {
		this.mediaType = mediaType;
	}

	public String getMediaId() {
		return MediaId;
	}

	public void setMediaId(String mediaId) {
		MediaId = mediaId;
	}

	public String getErrcode() {
		return errcode;
	}

	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getMsgStatus() {
		return msgStatus;
	}

	public void setMsgStatus(String msgStatus) {
		this.msgStatus = msgStatus;
	}

}
